<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <title>查看工单</title>
    <link rel="stylesheet" type="text/css" href="./css/main.css" />
    <link rel="stylesheet" type="text/css" href="./layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="./css/layuiAdminTheme.css" />
    <style type="text/css">
      .layui-form-label {
        width: auto !important;
      }

      .createTime,
      .operation span:first-of-type {
        color: #1990FF;
      }

      .operation span:last-of-type {
        color: #F5222D;
      }

      .pageNav {
        margin: 0 auto;
        width: fit-content;
      }

      .pageNav a,
      .operation span {
        cursor: pointer;
        display: inline-block;
      }

      .operation{
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
      }

      cite {
        cursor: default;
      }

      td
      {
        white-space: nowrap;
        text-align: center;
        vertical-align:middle;
      }

      .addFile {
        cursor:pointer;
      }

      .firstTd{
        text-align: center;
        vertical-align: center
      }

      #statusTd{
        cursor: pointer;
      }
      #statusTd:hover {
        color:red
      }
      .layui-form-select dl{
          max-width:5em;
      }

    </style>
  </head>
  <body>
    <script src="./js/main.js" charset="utf-8"></script>
<!--    <script src="https://cdn.jsdelivr.net/npm/jquery" charset="utf-8"></script>-->
<!--    <script src="./layui/layui.js" charset="utf-8"></script>-->
    <script src="./layui/layui.js" charset="utf-8"></script>
    <script src="./js/jQuery.main.js"></script>
    <script src="./js/jquery-migrate-1.2.1.js"></script>
    <script src="./js/xm-select.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/jquery.jqprint-0.3.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/orderManage.js" type="text/javascript" charset="utf-8"></script>

    <form class="layui-form" action="" lay-filter="data">
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">搜索：</label>
          <input type="text" name="orderNum" id="orderNum" class="layui-input" style="width: 12em;" placeholder="工单LotNo或父级编号" value="">
        </div>
        <div class="layui-inline">
            <select id="pinName" type="text" name="pinName" class="layui-input" style="width: 8em;" lay-filter="pinName">
                <option value="">请选择品名...</option>
            </select>
        </div>
        <div class="layui-inline">
          <input type="text" name="createBy" id="createBy" class="layui-input" style="width: 12em;" placeholder="创建人" value="">
        </div>
        <div class="layui-inline" style="display: none">
          <input type="text" name="workshop" id="workshop" class="layui-input" style="width: 8em;" placeholder="下达车间" value="">
        </div>
        <div class="layui-inline" style="display: none">
          <input type="text" name="workerNo" id="workerNo" class="layui-input" style="width: 8em;" placeholder="指派人工号" value="">
        </div>
        <div class="layui-inline">
<!--          <input id="deptName" type="text" name="orderDept" class="layui-input" style="width: 8em;" placeholder="所属部门" value="" >-->
            <select id="deptName" type="text" name="orderDept" class="layui-input" style="width: 8em;" lay-filter="orderDept" onclick="isAdminOfOrder()">
                <option value="">请选择部门...</option>
            </select>
        </div>
        <div class="layui-inline">
          <select id="status" type="text" name="status" class="layui-input" style="width: 8em;" lay-filter="status">
            <option value="">请选择状态...</option>
            <option value="3">待投料</option>
            <option value="0">进行中</option>
            <option value="1">待审核</option>
            <option value="2">已完成</option>
          </select>
        </div>
        <div class="layui-inline">
          <input type="text" id="displayLength" name="displayLength" class="layui-input" style="display: none;" placeholder="每页页数" value="10">
          <button id="searchBtn" type="submit" class="layui-btn" lay-submit="" lay-filter="searchBtn">查询工单</button>
        </div>
        <div class="layui-inline" style="margin-left: 35px">
          <div><b id="screenFont" style="font-size: large;line-height:35px;color: #000000"><i id="screenIcon" style="cursor: pointer" onclick="screenOrder()" class="layui-icon">&#xe63f;</i>     筛选我的待办<i class="layui-icon">&#xe667;</i></b></div>
        </div>

        <div class="layui-inline addFile" style="float:right">
          <div><b style="text-decoration:underline;line-height:35px" onclick="importFile()"><i class="layui-icon">&#xe621;</i>  导入本地文件</b></div>
        </div>

        <div class="layui-inline addFile" style="float:right;margin-right: 35px">
          <div><i class="layui-icon">&#xe9aa;</i><b style="text-decoration:underline;line-height:35px" onclick="reloadThis()">  刷新数据</b></div>
        </div>
<!--        <div class="layui-inline addFile" style="float:right;margin-right: 35px">-->
<!--        <div><b style="text-decoration:underline;line-height:35px" onclick="myOrder()"><i class="layui-icon">&#xe667;</i>  我的待办</b></div>-->
<!--      </div>-->
      </div>
    </form>
    <table class="layui-table" lay-skin="line" id="orderTable">
      <thead>
        <tr>
           <th><input type="checkbox" id="select" onclick="selectAll()" /></th>
          <!--<th><input type="checkbox" id="select" onclick="selectAll()" /></th>-->
          <th style="text-align: center">工单编号
            <span class="layui-table-sort layui-inline">
              <i class="layui-edge layui-table-sort-asc" title="升序" onclick="sortLotNo('lotAsc')"></i>
              <i class="layui-edge layui-table-sort-desc" title="降序" onclick="sortLotNo('lotDesc')"></i>
            </span></th>
          <th style="text-align: center">品名</th>
          <th style="text-align: center">父工单</th>
          <th style="text-align: center">创建时间
            <span class="layui-table-sort layui-inline">
              <i class="layui-edge layui-table-sort-asc" title="升序" onclick="sortTime('asc')"></i>
              <i class="layui-edge layui-table-sort-desc" title="降序" onclick="sortTime('desc')"></i>
            </span></th>
          <th style="text-align: center">创建人</th>
          <th style="text-align: center">产品类型</th>
<!--          <th style="text-align: center">物料编码</th>-->
<!--          <th style="text-align: center">物料名称</th>-->
<!--          <th style="text-align: center">型号规格</th>-->
          <th style="text-align: center">结算数(含余数)</th>
          <th style="text-align: center">计划数量</th>
<!--          <th style="text-align: center">当前工序</th>-->
<!--          <th>上一工序</th>-->
<!--          <th>下一工序</th>-->
<!--          <th style="text-align: center">当前人员</th>-->
          <th style="text-align: center">工单状态</th>
          <th style="text-align: center"><input type="checkbox" id="checkSelect" onclick="selectAllOfCheck()"></th>
          <th style="text-align: center">工序检录</th>
          <th style="text-align: center">报错校正</th>
          <th style="text-align: center">操作</th>
        </tr>
      </thead>
      <tbody></tbody>
    </table>
    <div style="display: flex;">
        <button type="button" class="layui-btn layui-btn-xs" style="background: #F5222D;" onclick="downloadFile()">批量列票导出</button>
      <div style="flex: 1">
        <div class="pageNav">
          <span class="layui-breadcrumb" lay-separator="-" >
            <a class="fristPage">首页</a>
            <a class="lastPage">上一页</a>
            <a><cite>第<span id="page"></span>页</cite></a>
            <a class="totalPage"><cite>共<span id="total">0</span>页</cite></a>
            <a class="nextPage">下一页</a>
            <a class="endPage">尾页</a>
          </span>
            <div style="float: right;width: 20em;">
                <div style="float: right">
                    <button type="button" class="layui-btn layui-btn-xs" style="background: #F5222D;" onclick="batchCheckInIt()">批量投料检录</button>
                </div>
            </div>
            <div style="float: right">
            <label> - 每页展示:  </label>
            <select  lay-verify="" onchange="changePages(this.value)">
                <option value="10">10条</option>
                <option value="15">15条</option>
                <option value="20">20条</option>
            </select></div>
        </div>
      </div>
    </div>

    <div id="viewDiv"  class="site-text" style="margin: 5%; display: none"></div>
    <div id="checkBox"  class="site-text" style="margin: 5%; display: none"></div>
    <div id="viewWorker"  class="site-text" style="margin: 5%; display: none"></div>
    <div id="processPdf"  class="site-text" style="margin: 5%; display: none"></div>
    <div id="downChoose"  class="site-text" style="margin: 5%; display: none"></div>

    <script type="text/javascript"></script>
  </body>
</html>
